using UnityEngine;

public class FriendsUISearchNotification : MonoBehaviour
{
	public GameObject loadingAnimation;

	public GameObject messageWindow;

	public GameObject searchHint;

	public void ShowMessageWindow()
	{
		HideAll();
		base.gameObject.SetActive(true);
		messageWindow.SetActive(true);
	}

	public void HideMessageWindow()
	{
		if (base.gameObject != null)
		{
			base.gameObject.SetActive(false);
		}
		messageWindow.SetActive(false);
	}

	public void ShowLoading()
	{
		HideAll();
		if (base.gameObject != null)
		{
			base.gameObject.SetActive(true);
		}
		loadingAnimation.SetActive(true);
	}

	public void HideLoading()
	{
		if (base.gameObject != null)
		{
			base.gameObject.SetActive(false);
		}
		loadingAnimation.SetActive(false);
	}

	public void ShowHint()
	{
		HideAll();
		if (base.gameObject != null)
		{
			base.gameObject.SetActive(true);
		}
		searchHint.SetActive(true);
	}

	public void HideHint()
	{
		if (base.gameObject != null)
		{
			base.gameObject.SetActive(false);
		}
		searchHint.SetActive(false);
	}

	private void HideAll()
	{
		loadingAnimation.SetActive(false);
		messageWindow.SetActive(false);
		searchHint.SetActive(false);
	}

	private void OnDisable()
	{
		HideAll();
	}
}
